import {useSelector} from "react-redux";
import {StoreState} from "../redux";
import {userState} from "../redux/userReducer";

function useGetUserInfo() {
    const {nickname, username} = useSelector<StoreState>(state => state.user) as userState
    return {nickname, username}
}

export default useGetUserInfo
